var mask = $('#Mask');
// loading mask
mask.on('touchstart mousedown', function(e) {
    e.preventDefault();
});
mask.on('touchmove mousemove', function(e) {
    e.stopPropagation();
});
mask.showIt = function() {
    // toast('加载中...');
    var self = this;
    self.addClass('active');
    setTimeout(function() {
        self.addClass('show');
    }, 1);
}
mask.hideIt = function() {
    // closeToast();
    var self = this;
    self.removeClass('active');
    setTimeout(function() {
        self.removeClass('show');
    }, 1)
}


var maskMsg = $('#Mask-Msg');
maskMsg.on('touchstart mousedown', function(e) {
    // e.preventDefault();
    e.stopPropagation();
    if($(e.target).hasClass('utra')){
        maskMsg.hideIt();
        return false;
    }

});
maskMsg.on('touchmove mousemove', function(e) {
    e.stopPropagation();
});
maskMsg.showIt = function() {
    var self = this;
    self.addClass('active');
    setTimeout(function() {
        self.addClass('show');
    }, 1);
}
maskMsg.hideIt = function() {
    var self = this;
    self.removeClass('active');
    setTimeout(function() {
        self.removeClass('show');
    }, 1)
    //停止播放语音
	uexAudio.stop();
	window.currentAudio && window.currentAudio.pause();
}